
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
About the Web ActiveX</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="dwprgugp53.htm">Previous</A>&nbsp;&nbsp;<A HREF="dwprgugp55.htm" >Next</A>
<!-- End Header -->
<A NAME="BGBEAJBA"></A><h1>About the Web ActiveX</h1>
<A NAME="TI2223"></A><h4>Features</h4>
<A NAME="TI2224"></A><p>The Sybase DataWindow Web control for ActiveX is a fully interactive DataWindow
control for use with Microsoft Internet Explorer. It implements
all standard DataWindow features except rich text.</p>
<A NAME="TI2225"></A><p>The Web ActiveX supports data retrieval with retrieval arguments
and data update. You can use edit styles, display formats, and validation
rules. Most of the standard methods for manipulating the DataWindow
are available, including Modify for changing DataWindow object properties. Several
functions that involve file system interactions, such as SaveAs and
SaveAsAscii, are not supported, allowing the Web ActiveX to be in the <i>safely
scriptable</i> category of ActiveX controls.</p>
<A NAME="TI2226"></A><p>Included with the Web ActiveX is the Sybase DataWindow Transaction
Object control for making database connections that can be shared
by several Web ActiveX controls.</p>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Browser support</span> <A NAME="TI2227"></A>The Web ActiveX and Transaction Object control are designed
to work in browsers that support ActiveX controls, such as Microsoft
Internet Explorer version 3 and higher.</p>
<A NAME="TI2228"></A>The DataWindow controls are not designed to work in Netscape
browsers, which do not support ActiveX controls. Even if you use
third-party plug-ins to enable ActiveX support, scripting for the
controls works differently and is not tested.</p>
<A NAME="TI2229"></A><h4>Development environment</h4>
<A NAME="TI2230"></A><p>When you install PowerBuilder, the Setup program registers
the Web ActiveX and the Transaction Object controls in the Windows
registry. The class information entered in the registry is visible
in the PowerBuilder Browser under OLE Custom Controls on the OLE
tab. You can also examine the properties, events, and methods of
the controls on the OLE tab of the Browser.</p>
<A NAME="TI2231"></A><p>To use the Web ActiveX, your development system must meet
the following requirements, all of which are met when you install
any PowerBuilder component that requires the Java VM:<A NAME="TI2232"></A>
<ul>
<li class=fi>The Sun JRE 1.2 or later must
be installed on your system</li>
<li class=ds>The path to the <i>jvm.dll</i> file
must be in your system PATH environment variable<br>
The path is <i>...\JRE\bin\client</i> for
JRE 1.4 and .<i>..\JRE\bin\classic</i> for <br>JRE
1.2 or 1.3<br></li>
<li class=ds>The following files must be in a directory in your
system PATH environment variable: <i>pbjvm115.dll</i>, <i>pbshr115.dll</i>,
and <i>pbjdbc12115.jar</i></li>
<li class=ds>If you are using Internet Infomation Services (IIS)
6.0, you need to configure IIS to recognize the .<i>pbl</i>,
.<i>pbd</i>, and .<i>psr</i> extensions
as MIME types. See <A HREF="dwprgugp54.htm#CHDDGCBG">"Adding MIME types to IIS
6.0"</A>.
</li>
</ul>
</p>
<A NAME="TI2233"></A><p>In addition, the Java classes required by your database vendor's
client layer must be installed on your system.</p>
<A NAME="TI2234"></A><p>For information about the required HTML, see <A HREF="dwprgugp55.htm#BGBDCAIG">"HTML for inserting the controls
on a Web page"</A>.</p>
<A NAME="TI2235"></A><h4>DataWindow objects</h4>
<A NAME="TI2236"></A><p>The Web ActiveX uses a DataWindow object, which determines
what data is retrieved and how it is displayed. The Web ActiveX
can also display Powersoft reports (PSRs), which do not need to
retrieve data.</p>
<A NAME="TI2237"></A><p>A DataWindow object for the Web ActiveX can have any presentation
style except RichText.</p>
<A NAME="TI2238"></A><p>DataWindow objects are stored in PowerBuilder libraries (<ACRONYM title = "pibbles" >PBLs</ACRONYM>) or PowerBuilder dynamic libraries
(PBDs). The DataWindow libraries are stored on the Web server and
downloaded as needed by the Internet Explorer browser. You use a
URL to point to the library. It can be relative or absolute, using
any supported protocol&#8212;for example, http, ftp, or file. </p>
<A NAME="TI2239"></A><p>For more information, see <A HREF="dwprgugp56.htm#BGBBADHJ">"DataWindow objects for the
Web ActiveX"</A>.</p>
<A NAME="CHDDGCBG"></A><h4>Adding MIME types to IIS
6.0</h4>
<A NAME="TI2240"></A><p>To use the Web ActiveX with IIS 6.0, which is the IIS version
included in Windows Server 2003, you need to configure IIS to recognize
the .<i>pbl</i>, .<i>pbd</i>, and .<i>psr</i> extensions.
Previous versions of IIS include a wildcard character MIME mapping
that allows IIS to serve any file.</p>
<A NAME="TI2241"></A><p>You must be a member of the Administrators group on the local
computer to perform the following procedure, or you must have been
delegated the appropriate authority. For more information, see the
Microsoft documentation for IIS 6.0 or this <A HREF="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cd72c0dc-c5b8-42e4-96c2-b3c656f99ead.mspx">Microsoft support document</A>
.</p>
<A NAME="TI2242"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To add a global MIME type to IIS 6.0:</p>
<ol><li class=fi><p>In IIS Manager, right-click the computer
on which you want to add a MIME type, and click Properties. </p></li>
<li class=ds><p>Click MIME Types. </p></li>
<li class=ds><p>Click New. </p></li>
<li class=ds><p>In the Extension box, type <FONT FACE="Courier New">pbl</FONT>. </p></li>
<li class=ds><p>In the MIME type box, type <FONT FACE="Courier New">application/octet-stream</FONT>. </p></li>
<li class=ds><p>Repeat steps 4 and 5 for the .<i>pbd</i> and
.<i>psr</i> extensions, using <FONT FACE="Courier New">application/octet-stream</FONT> and <FONT FACE="Courier New">application/datawindow</FONT> respectively
as the MIME types.</p></li>
<li class=ds><p>Click OK. </p></li>
<li class=ds><p>Restart IIS to apply the new settings.</p></li></ol>
<br><A NAME="TI2243"></A><p>You can also add a MIME type to a specific Web site or directory
from its HTTP Headers property page.</p>
<A NAME="TI2244"></A><h4>Database connections</h4>
<A NAME="TI2245"></A><p>The Web ActiveX uses JDBC for database connectivity. Users
can connect to a data source on any server to which they have access,
including databases and middle-tier servers on the Internet.</p>
<A NAME="TI2246"></A><p>You can use internal transaction properties for specifying
a connection; or you can make the connection with a separate Transaction
object, the Sybase DataWindow Transaction Object control. When you
connect using a separate transaction object, you can control when
SQL <b>COMMIT</b> and <b>ROLLBACK</b> statements
occur and you can use the same connection for multiple Web ActiveX
controls.</p>
<A NAME="TI2247"></A><p>For more information, see <A HREF="dwprgugp57.htm#BGBCBBDH">"Using the DataWindow Transaction
Object control"</A>.</p>
<A NAME="TI2248"></A><h4>Scripting</h4>
<A NAME="TI2249"></A><p>Since the Web ActiveX is designed for Internet Explorer, you
can use Jscript or another ECMAScript-compatible scripting language
for scripting purposes. </p>
<A NAME="TI2250"></A><p>In general, you can use the same methods as in a PowerBuilder
application. However, there are a few differences:<A NAME="TI2251"></A>
<ul>
<li class=fi>Datatypes are mapped to the basic JavaScript types of string,
number, boolean, and various object types</li>
<li class=ds>ECMAScript languages do not support arguments passed
by reference; so instead of checking the value of a reference argument,
you call a separate method to retrieve the value</li>
<li class=ds>Enumerated datatypes are not supported; instead,
specify the integer that corresponds to the enumerated data value
</li>
</ul>
</p>
<A NAME="TI2252"></A><p>For more information, see <A HREF="dwprgugp59.htm#BGBCDGFJ">"Coding for the Web ActiveX"</A>.</p>
<A NAME="TI2253"></A><h4>Events</h4>
<A NAME="TI2254"></A><p>The Web ActiveX supports the same events as a standard DataWindow
control, with these differences:<A NAME="TI2255"></A>
<ul>
<li class=fi>Event names
are different to conform to Web conventions</li>
<li class=ds>Events in ECMAScript languages do not have return
values; instead you can call <b>SetActionCode</b> to
affect the outcome of an event 
</li>
</ul>
</p>
<A NAME="TI2256"></A><h4>Deployment</h4>
<A NAME="TI2257"></A><p>The Web ActiveX is provided as a CAB file, which allows the
client browser to install and register the control. When the user
downloads a Web page that refers to the CAB file, the browser also
downloads the CAB file if necessary, unpacks it, and registers the
control. Some additional files must also be deployed to the client.</p>
<A NAME="TI2258"></A><p>For more information, see <A HREF="dwprgugp60.htm#BGBDBIAA">"Deploying the Web ActiveX"</A>.</p>

